package com.twu.biblioteca.model;

/**
 * Created with IntelliJ IDEA.
 * User: st
 * Date: 14-4-16
 * Time: 下午9:02
 * To change this template use File | Settings | File Templates.
 */
import org.junit.Before;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;


public class book {
    private bookModel book;

    @Before
    public void setup(){
        book=new bookModel();
        book.setBookId(0001);
        book.setBookName("Head First Java") ;
        book.setAuthorName("KathySierra");
    }

    @Test
    public void BookIdShouldHaveValue(){
        assertThat(book.getBookId(),is(notNullValue()));

    }
}
